extends TextureRect

var playerLife 

func _ready():
	playerLife = get_tree().current_scene.get_node("playerLife")

func _attack():
	var weili = int(rand_range(0,100))
	playerLife.value = playerLife.value - weili
	pass
